package com.example.Gethome.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "AdminLogin")
@CrossOrigin(allowCredentials = "true", allowedHeaders = "*")
public class AdminLoginController {

    @RequestMapping(path = "in")
    public String login() {
        return "/login.html";
    }

    @RequestMapping(value="/{filename}")
    public String getHtml(@PathVariable(name="filename") String filename){
        return "/" + filename;
    }
}
